﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Testify.Tests.Test" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>

    <%--Show/Hide the Question Forms--%>
    <script type="text/javascript">
        $(function () {
            $(".forms").hide();
            $("#MainContent_ddl_question_types").change(function () {
                switch ($(this).val()) {
                    case "0":
                        $(".forms").hide();
                        break;
                    case "1":
                        $(".forms").hide().parent().find("#Form1").show();
                        break;
                    case "2":
                        $(".forms").hide().parent().find("#Form2").show();
                        break;
                    case "3":
                        $(".forms").hide().parent().find("#Form3").show();
                        break;
                    case "4":
                        $(".forms").hide().parent().find("#Form4").show();
                        break;
                    case "5":
                        $(".forms").hide().parent().find("#Form5").show();
                        break;
                    case "6":
                        $(".forms").hide().parent().find("#Form6").show();
                        break;
                    case "7":
                        $(".forms").hide().parent().find("#Form7").show();
                        break;
                }
                $("#float").css("top", "200px");
                $("#float").css("left", "200px");

                $(".close").click(function () { $(".forms").fadeOut(100); $("#MainContent_ddl_question_types").val("0"); });
            });
        });
    </script>

    <%--Dragging the Question Forms--%>
    <script type="text/javascript">
        $(function () {
            $("#float").draggable({
                drag: function (event, ui) {
                    $("#float").css("opacity", "0.6"); // Semi-transparent while being dragged
                },
                stop: function (event, ui) {
                    $("#float").css("opacity", "1.0"); // Revert to fully opaque when dragging stopped
                },
                containment: "window",
                handle: ".titleBar",
                cursor: "move"
            });
        });
    </script> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:SqlDataSource ID="src_ddl_question_types" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT question_type_id, question_type_description
                       FROM singularity.question_type">
    </asp:SqlDataSource>

    <%--Drop down for Question Types--%>
    <asp:Label ID="lbl_question_types" runat="server" Text="Question Types "></asp:Label>
    <div class="dropdown">   
        <asp:DropDownList ID="ddl_question_types" runat="server" DataSourceID="src_ddl_question_types" 
            DataTextField="question_type_description" DataValueField="question_type_id" AppendDataBoundItems="True">
            <asp:ListItem Text="Choose one.." Selected="True" Value="0"></asp:ListItem>
        </asp:DropDownList>
    </div>
    
    <%--Container to hold question forms.--%>
    <div id="float">
        <%--True/False--%>
        <div id="Form1" class="forms">
            <div class="titleBar">
                <asp:HyperLink ID="HyperLink1" class="close" runat="server">Close</asp:HyperLink>
                <h2>True/False</h2>
            </div>
            <div class="float_spacer">
                <div id="lbl_q_truefalse">Question</div>
                <textarea rows="5" cols="50" id="txa_q_truefalse"></textarea>
                <br />
                <asp:Label ID="lbl_a_truefalse" runat="server" Text="Answer">
                    <asp:RadioButtonList ID="rbtn_a_truefalse" runat="server">
                        <asp:ListItem Value="1" Text="True"></asp:ListItem>
                        <asp:ListItem Value="2" Text="False"></asp:ListItem>
                    </asp:RadioButtonList>
                </asp:Label>
                <asp:Button ID="btn_submit_truefalse" class="smallButton" runat="server" Text="Submit"></asp:Button>
            </div>
        </div>

        <%--Multiple Choice--%>
        <div id="Form2" class="forms">
            <div class="titleBar">
                <asp:HyperLink ID="HyperLink2" class="close" runat="server">Close</asp:HyperLink>
                <h2>Multiple Choice</h2>
            </div>
            <div class="float_spacer">
                <div id="lbl_q_multiplechoice">Question</div>
                <textarea rows="5" cols="50" id="txa_q_multiplechoice"></textarea>
                <br />
                <div id="lbl_a_multiplechoice">Choices</div>
                <asp:Label ID="lbl_a_a" runat="server" Text="A. "><asp:TextBox ID="txbA" runat="server"></asp:TextBox></asp:Label><br />
                <asp:Label ID="lbl_a_b" runat="server" Text="B. "><asp:TextBox ID="txbB" runat="server"></asp:TextBox></asp:Label><br />
                <asp:Label ID="lbl_a_c" runat="server" Text="C. "><asp:TextBox ID="txbC" runat="server"></asp:TextBox></asp:Label><br />
                <asp:Label ID="lbl_a_d" runat="server" Text="D. "><asp:TextBox ID="txbD" runat="server"></asp:TextBox></asp:Label><br />
                <asp:Label ID="lbl_a_choices" runat="server" Text="Answer">
                    <asp:RadioButtonList ID="rbtn_a_multiplechoice" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Text="True">A. </asp:ListItem>
                        <asp:ListItem Value="2" Text="False">B. </asp:ListItem>
                        <asp:ListItem Value="3" Text="True">C. </asp:ListItem>
                        <asp:ListItem Value="4" Text="False">D. </asp:ListItem>
                    </asp:RadioButtonList>
                </asp:Label>
                <asp:Button ID="btn_submit_multiplechoice" class="smallButton" runat="server" Text="Submit"></asp:Button>
            </div>
        </div>

        <%--Fill in the Blank--%>
        <div id="Form3" class="forms">
            <div class="titleBar">
                <asp:HyperLink ID="HyperLink3" class="close" runat="server">Close</asp:HyperLink>
                <h2>Fill in the Blank</h2>
            </div>
            <div class="float_spacer">
                <div id="lbl_q_fitb">Question</div>
                <textarea rows="5" cols="50" id="txa_q_fitb"></textarea>
                <br />
                <asp:Label ID="lbl_a_fitb" runat="server" Text="Answer"></asp:Label>
                <asp:TextBox ID="txb_fitb" runat="server"></asp:TextBox>
                <asp:Button ID="btn_submit_fitb" class="smallButton" runat="server" Text="Submit"></asp:Button>
            </div>
        </div>

        <%--Essay/Short Answer--%>
        <div id="Form4" class="forms">
            <div class="titleBar">
                <asp:HyperLink ID="HyperLink4" class="close" runat="server">Close</asp:HyperLink>
                <h2>Essay/Short Answer</h2>
            </div>
            <div class="float_spacer">
                <div id="lbl_q_essayshortanswer">Question</div>
                <textarea rows="5" cols="50" id="txa_q_essayshortanswer"></textarea>
                <br />
                <asp:Label ID="lbl_a_essayshortanswer" runat="server" Text="Answer">
                        <asp:TextBox ID="txb_a_essayshortanswer" runat="server"></asp:TextBox>
                </asp:Label>
                <asp:Button ID="btn_submit_essayshortanswer" class="smallButton" runat="server" Text="Submit"></asp:Button>
            </div>
        </div>

        <%--Choose all that Apply--%>
        <div id="Form5" class="forms">
            <div class="titleBar">
                <asp:HyperLink ID="HyperLink5" class="close" runat="server">Close</asp:HyperLink>
                <h2>Choose all that Apply</h2>
            </div>
            <div class="float_spacer">
                <div id="lbl_q_chooseall">Question</div>
                <textarea rows="5" cols="50" id="txa_q_chooseall"></textarea>
                <br />
                <asp:Label ID="lbl_a_chooseall" runat="server" Text="Answers">
                    <asp:CheckBoxList ID="CheckBoxList1" runat="server">
                        <asp:ListItem Value="1"><input type="text" name="a" /></asp:ListItem>
                        <asp:ListItem Value="2"><input type="text" name="b" /></asp:ListItem>
                        <asp:ListItem Value="3"><input type="text" name="c" /></asp:ListItem>
                        <asp:ListItem Value="4"><input type="text" name="d" /></asp:ListItem>
                        <asp:ListItem Value="5"><input type="text" name="e" /></asp:ListItem>
                        <asp:ListItem Value="6"><input type="text" name="f" /></asp:ListItem>
                        <asp:ListItem Value="7"><input type="text" name="g" /></asp:ListItem>
                        <asp:ListItem Value="8"><input type="text" name="h" /></asp:ListItem>
                    </asp:CheckBoxList>
                </asp:Label>
                <asp:Button ID="btn_submit_chooseall" class="smallButton" runat="server" Text="Submit"></asp:Button>
            </div>
        </div>

        <%--Matching--%>
        <div id="Form6" class="forms">
            <div class="titleBar">
                <asp:HyperLink ID="HyperLink6" class="close" runat="server">Close</asp:HyperLink>
                <h2>Matching</h2>
            </div>
            <div class="float_spacer">
                <div id="lbl_q_matching">Question</div>
                <textarea rows="5" cols="50" id="txa_q_matching"></textarea>
                <br />
                <div style="height: 250px; overflow:scroll;">
                <table>
            
                <tr id="trOptionRow1">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_1" type="text" maxlength="500" id="ctl00_BodyContent_txtText1" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="ctl00_BodyContent_ddlTextRank1" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_1" type="text" maxlength="500" id="ctl00_BodyContent_txtValue1" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="ctl00_BodyContent_ddlValueRank1" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder2" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow2">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_2" type="text" maxlength="500" id="Text1" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select1" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder3" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_2" type="text" maxlength="500" id="Text2" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select2" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder4" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow3">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_3" type="text" maxlength="500" id="Text3" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select3" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder5" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_3" type="text" maxlength="500" id="Text4" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select4" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder6" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow4">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_4" type="text" maxlength="500" id="Text5" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select5" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder7" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_4" type="text" maxlength="500" id="Text6" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select6" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder8" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow5">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_5" type="text" maxlength="500" id="Text7" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select7" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder9" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_5" type="text" maxlength="500" id="Text8" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select8" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder10" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow6">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_6" type="text" maxlength="500" id="Text9" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select9" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder11" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_6" type="text" maxlength="500" id="Text10" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select10" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder12" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow7">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_7" type="text" maxlength="500" id="Text11" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select11" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder13" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_7" type="text" maxlength="500" id="Text12" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select12" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder14" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow8">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_8" type="text" maxlength="500" id="Text13" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select13" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder15" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_8" type="text" maxlength="500" id="Text14" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select14" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder16" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow9">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_9" type="text" maxlength="500" id="Text15" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select15" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder17" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_9" type="text" maxlength="500" id="Text16" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select16" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder18" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow10">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_10" type="text" maxlength="500" id="Text17" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select17" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder19" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_10" type="text" maxlength="500" id="Text18" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select18" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder20" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow11">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_11" type="text" maxlength="500" id="Text19" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select19" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder21" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_11" type="text" maxlength="500" id="Text20" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select20" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder22" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow12">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_12" type="text" maxlength="500" id="Text21" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select21" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder23" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_12" type="text" maxlength="500" id="Text22" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select22" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder24" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow13">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_13" type="text" maxlength="500" id="Text23" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select23" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder25" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_13" type="text" maxlength="500" id="Text24" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select24" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder26" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow14">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_14" type="text" maxlength="500" id="Text25" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select25" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder27" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_14" type="text" maxlength="500" id="Text26" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select26" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder28" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow15">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_15" type="text" maxlength="500" id="Text27" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select27" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder29" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_15" type="text" maxlength="500" id="Text28" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select28" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder30" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow16">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_16" type="text" maxlength="500" id="Text29" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select29" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder31" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_16" type="text" maxlength="500" id="Text30" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select30" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder32" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow17">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_17" type="text" maxlength="500" id="Text31" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select31" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder33" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_17" type="text" maxlength="500" id="Text32" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select32" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder34" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow18">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_18" type="text" maxlength="500" id="Text33" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select33" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder35" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_18" type="text" maxlength="500" id="Text34" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select34" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder36" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow19">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_19" type="text" maxlength="500" id="Text35" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select35" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder37" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_19" type="text" maxlength="500" id="Text36" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select36" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder38" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
                <tr id="trOptionRow20">
                    <td style="text-align:center;vertical-align:middle;padding-left:4px; padding-right:4px;">
                    </td>
                    <td>
                        <input name="question_20" type="text" maxlength="500" id="Text37" class="formField" tabindex="20" style="width:275px;">
                    </td>
                    <td>
                       <select name="ctl00$BodyContent$ddlTextRank1" id="Select37" class="formField">
	                       <option selected="selected" value="1">1</option>
                           <asp:PlaceHolder ID="PlaceHolder39" runat="server"></asp:PlaceHolder>
                       </select>
                    </td>
                    <td style="padding-left:5px;">
                        <input name="answer_20" type="text" maxlength="500" id="Text38" class="formField" tabindex="21" style="width:275px;">
                    </td>
                    <td style="padding-right:8px;">
                        <select name="ctl00$BodyContent$ddlValueRank1" id="Select38" class="formField">
	                        <option selected="selected" value="1">1</option>
                            <asp:PlaceHolder ID="PlaceHolder40" runat="server"></asp:PlaceHolder>
                        </select>
                    </td>
                </tr>
            
                </table>
                </div>
                <asp:Button ID="btn_submit_matching" class="smallButton" runat="server" Text="Submit"></asp:Button>
            </div>
        </div>

        <%--Modified True/False--%>
        <div id="Form7" class="forms">
            <div class="titleBar">
                <asp:HyperLink ID="HyperLink7" class="close" runat="server">Close</asp:HyperLink>
                <h2>Modified True/False</h2>
            </div>
            <div class="float_spacer">
                <div id="lbl_q_modifiedtruefalse">Question</div>
                <textarea rows="5" cols="50" id="txa_q_modifiedtruefalse"></textarea>
                <br />            
                <asp:TextBox ID="txb_q_modtruefalse" runat="server"></asp:TextBox>            
                <asp:Label ID="Label1" runat="server" Text="Answer">
                    <asp:RadioButtonList ID="rbtn_a_modifiedtruefalse" runat="server">
                        <asp:ListItem Value="1" Text="True"></asp:ListItem>
                        <asp:ListItem Value="2" Text="False"></asp:ListItem>
                    </asp:RadioButtonList>
                </asp:Label>
                <asp:Button ID="Button1" class="smallButton" runat="server" Text="Submit"></asp:Button>
            </div>
        </div>
    </div>

    <asp:SqlDataSource ID="src_dl_test" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="select *
                       from test t 
                       JOIN test_type tt USING(test_type_id) 
                       JOIN test_segment ts USING(test_id) 
                       JOIN question q USING(segment_id) 
                       JOIN question_type qt USING(question_type_id) 
                       JOIN choice ch USING(question_id) 
                       WHERE test_id = :test_id 
                       ORDER BY segment_sort_order, question_id" 
        onselecting="src_dl_test_Selecting">
        <SelectParameters>
            <asp:Parameter Name="test_id" />
        </SelectParameters>
    </asp:SqlDataSource>
    
    <asp:DataList ID="dl_test" runat="server" DataSourceID="src_dl_test" 
        DataKeyField="SEGMENT_ID">
        <ItemTemplate>
            SEGMENT_HEADER:
            <asp:Label ID="SEGMENT_HEADERLabel" runat="server" 
                Text='<%# Eval("SEGMENT_HEADER") %>' />
            <br />
            SEGMENT_INSTRUCTIONS:
            <asp:Label ID="SEGMENT_INSTRUCTIONSLabel" runat="server" 
                Text='<%# Eval("SEGMENT_INSTRUCTIONS") %>' />
            <br />
        </ItemTemplate>
    </asp:DataList>
</asp:Content>
